package ${packageName};

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import ${applicationPackage}.BR;
import ${applicationPackage}.R;
import ${applicationPackage}.databinding.${underscoreToCamelCase(layoutName)}Binding;
<#if !generateViewModel>
import me.goldze.mvvmhabit.base.BaseViewModel;
<#else>
import ${packageName}.viewModel.${viewModelName};
</#if>

import me.goldze.mvvmhabit.base.BaseFragment;

/** 
 * ${fragmentLabel}
 */ 
public class  ${fragmentClass} extends BaseFragment<${underscoreToCamelCase(layoutName)}Binding,<#if generateViewModel> ${viewModelName}<#else> BaseViewModel</#if>>  {

    @Override
    public int initContentView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return R.layout.${layoutName};
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

//    @Override
//    public ${viewModelName} initViewModel() {
//        //View持有ViewModel的引用，如果没有特殊业务处理，这个方法可以不重写
//        return ViewModelProviders.of(this).get(${viewModelName}.class);
//    }
    @Override
    public void initViewObservable() {


    }
}
